package com.shinewind.home.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.shinewind.home.mapper.IBrandMapper;
import com.shinewind.home.service.IBrandService;
import com.shinewind.pojo.entity.Brand;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.stereotype.Service;

@Service
@DubboService
public class BrandServiceImpl extends ServiceImpl<IBrandMapper, Brand> implements IBrandService {
    @Override
    public Brand getBrandInfoById(Integer bId){
        Brand brand = this.lambdaQuery().eq(Brand::getBId,bId).one();
        return brand;
    }
}